/* 
 * File:   main.cpp
 * Author: kathrin
 *
 * Created on 3. April 2010, 13:13
 */

#include <iostream>
#include <iomanip>
#include <string>
#include <stdio.h>
#include "Medium.h"

#define MAXLEN 512
#define MAXARR 16

/*
 * 
 */
int main() {
    char cmd;
    Medium*media = new Medium;


    while(cmd!='q'){
        cout << "Bitte Befehl eingeben: ";
        cin >>cmd;

        switch (cmd){
            case 'm':
                media->init();
                break;
            case 'i':
                media->info();
                break;
            case 'e':
                media->leihen();
                break;
            case 'r':
                media->rueckgabe();
                break;
            case 'q':
                delete media;
                exit(0);
                break;
            default:
                cout <<"Falscher Befehl";
                exit(1);
        }
    }

    return 0;
}

